<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        let returnName = window.confirm('输入你的名字');

        if (returnName){
            alert("欢迎下次光临");
        }else{
            alert("手抖了。。。");
        }
        window.alert(returnName);



    let returnName = window.prompt(' 输入名字');
    alert(returnName);



    </script>
</head>
<body>

</body>
</html>